﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls.WebParts;
using BLL.test;

public partial class TestLogin : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
       
    }


    protected void btnLoginOnClick(object sender, EventArgs e)
    {
        try
        {
            string str = txtUserName.Text.Trim();
            textBll tb = new textBll();
            if (tb.CheckLogin(txtUserName.Text.Trim(), txtPWD.Text.Trim()))
            {
                Response.Redirect("TestMain.aspx");
                Session.Add("test", 0);
            }
        }
        catch (Exception ex)
        { 
        }
    }
    protected void btnCancle_onclick(object sender, EventArgs e)
    {

    }
}